Xbasic

FILE.POS_GET Function

Syntax

Position as N = file_pointer.Pos_Get()

Returns

PositionNumeric

Returnsn the current position in the file for the file object pointer.

Description

Get the position in the file.

Discussion

The .POS_GET() method returns the Position in the file of the file pointer.

Example

dim file_pointer as P
file_pointer = FILE.open("c:\autoexec.bat",FILE_RO_SHARED)
file_pointer.read(20)   'read 20 bytes
pos = file_pointer.pos_get()   'pos should be 20

See Also